import type { App } from "vue";
import "./style.scss";
import * as _ from "@usemath/utils"

const modules: any = import.meta.glob("./**/*vue", { eager: true });

export default {
    install(app: App<Element>) {
        for (const key in modules) {
            const name = key.replace(/\.\//, "").replace("/index.vue", "").replace("/", "-");
            app.component(`umi-${name}`, modules[key]?.default);
        }
    }
}